package com.springboot.controller;

import com.springboot.biz.NoteBiz;
import com.springboot.entity.Note;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping(value = "/note")
public class NoteController {

	@Resource
	private NoteBiz noteBiz;

	@RequestMapping(value = "/findlist")
	public List<Note> findList(int id) {
		return noteBiz.findListNote(id);
	}

}
